package com.tianji.coupon.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tianji.coupon.pojo.CouponScope;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.DeleteMapping;

/**
 * <p>
 * 优惠券作用范围信息 Mapper 接口
 * </p>
 *
 * @author 陈佳
 * @since 2024-08-29
 */
public interface CouponScopeMapper extends BaseMapper<CouponScope> {

    @Delete("DELETE FROM coupon_scope WHERE coupon_id = #{id}")
    void deletedByCouponId(@Param("id") Long id);
}
